import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        int max1=max(7,6);
        double max2=max(3.0,2.0,1.0);
        System.out.println(max1);
        System.out.println(max2);
    }
    public static int max(int x,int y){
        return (x>y)?x:y;
    }
    public static double max(double x,double y,double z){
        if(x>y)
        {
            return (x>z)?x:z;
        }
        else{
            return (y>z)?y:z;
        }
    }
    /*public static void main(String[] args) {
        int n=add(2,3);
        double m=add(1.0,2.0,3.0);
        System.out.println(n);
        System.out.println(m);
    }
    public static int add(int x,int y)
    {
        return x+y;
    }
    public static double add(double x,double y,double z)
    {
        return x+y+z;
    }*/
    /*public static int max2(int x,int y){
        return (x>y)?x:y;
    }
    public static int max3(int x,int y){
        return (x>y)?x:y;
    }
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入三个整数");
        int a= scanner.nextInt();
        int b= scanner.nextInt();
        int c= scanner.nextInt();
        int d=max2(a,b);
        int e=max3(d,c);
        System.out.println(e);
    }*/

}
